package day10.homework;
/** 狮子类 */
public class Lion0 extends Felidae{
    //北美狮
    private String northamericanlion;
    //非洲狮
    private String africalion;
    public Lion0(){

    }
    public Lion0(String northamericanlion,String africalion){
        this.northamericanlion = northamericanlion;
        this.africalion = africalion;
    }
    public void gregarious(){
        System.out.println(this.northamericanlion + "和"+ africalion +"是群居动物");
    }
}
